package com.zhb.designmode.structure.agency.dynamic.cglib;

public class Test {

    public static void main(String[] args) {
        TargetClient target = new TargetClient();
        CglibProxy cglibProxy = new CglibProxy(target);
        TargetClient instance = (TargetClient) cglibProxy.getInstance(target);
        instance.buyHouse();
    }
}
